from django.template import Library

from django.conf import settings

from djmd import utils

register = Library()

@register.inclusion_tag("djmd/preview_widget.html")
def markdown_to_html(markdown, include_jquery=True):

    utils.auto_config()

    return {"markdown": markdown, "include_jquery": include_jquery}

